package day1202friut;

public class Billmodel1 {
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getSoldnumber() {
		return soldnumber;
	}
	public void setSoldnumber(int soldnumber) {
		this.soldnumber = soldnumber;
	}
	public String getSoldtime() {
		return soldtime;
	}
	public void setSoldtime(String soldtime) {
		this.soldtime = soldtime;
	}
	public double getTotalprice() {
		return totalprice;
	}
	public void setTotalprice(double totalprice) {
		this.totalprice = totalprice;
	}
	public String toString() {
		return "在" + this.getSoldtime() + " 卖出了" + this.getSoldnumber() + "个" + this.getName()+" 共卖出 " + this.getTotalprice() + "元";
	}
	private String name;//账单水果名字.
	private int soldnumber;//卖出数量
	private String soldtime;//记录成交时间
	private double totalprice;//卖出的钱 
	private double costprice;//该水果的成本
	public double getCostprice() {
		return costprice;
	}
	public void setCostprice(double costprice) {
		this.costprice = costprice;
	}

}
